#include <iostream>

using namespace std;

void tongji(int sum);

int main(void)
{
	int sum;

	cout << "sum: ";
	cin >> sum;

	tongji(sum);

	return 0;
}

void tongji(int sum)
{
	double num;
	int i;
	int sumz = 0, sumf = 0, suml = 0;

	for(i = 0; i < sum; i ++)
        {
                cout << "num" << i + 1 << ": ";
                cin >> num;
                if(num > 0)
                        sumz ++;
                if(num < 0)
                        sumf ++;
                if(num == 0)
                        suml ++;
        }
	cout << "正数：" << sumz << endl;
	cout << "负数：" << sumf << endl;
	cout << "零数：" << suml << endl;
}
